Basic SWAP implementation